package com.ruoyi.artworks.service.impl;

import java.util.List;

import com.ruoyi.artworks.dao.ArtWorksStuTypeDao;
import com.ruoyi.artworks.domain.ArtworkType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.artworks.mapper.ArtworksMapper;
import com.ruoyi.artworks.domain.Artworks;
import com.ruoyi.artworks.service.IArtworksService;

/**
 * 校区作品管理Service业务层处理
 * 
 * @author hyl
 * @date 2025-06-19
 */
@Service
public class ArtworksServiceImpl implements IArtworksService 
{
    @Autowired
    private ArtworksMapper artworksMapper;

    /**
     * 查询校区作品管理
     * 
     * @param artworksId 校区作品管理主键
     * @return 校区作品管理
     */
    @Override
    public Artworks selectArtworksByArtworksId(Long artworksId)
    {
        return artworksMapper.selectArtworksByArtworksId(artworksId);
    }

    /**
     * 查询校区作品管理列表
     * 
     * @param artWorksStuTypeDao 校区作品管理
     * @return 校区作品管理
     */
    @Override
    public List<ArtWorksStuTypeDao> selectArtworksList(ArtWorksStuTypeDao artWorksStuTypeDao)
    {
        return artworksMapper.selectArtworksList(artWorksStuTypeDao);
    }

    /**
     * 新增校区作品管理
     * 
     * @param artworks 校区作品管理
     * @return 结果
     */
    @Override
    public int insertArtworks(Artworks artworks)
    {
        return artworksMapper.insertArtworks(artworks);
    }

    /**
     * 修改校区作品管理
     * 
     * @param artworks 校区作品管理
     * @return 结果
     */
    @Override
    public int updateArtworks(Artworks artworks)
    {
        return artworksMapper.updateArtworks(artworks);
    }

    /**
     * 批量删除校区作品管理
     * 
     * @param artworksIds 需要删除的校区作品管理主键
     * @return 结果
     */
    @Override
    public int deleteArtworksByArtworksIds(Long[] artworksIds)
    {
        return artworksMapper.deleteArtworksByArtworksIds(artworksIds);
    }

    /**
     * 删除校区作品管理信息
     * 
     * @param artworksId 校区作品管理主键
     * @return 结果
     */
    @Override
    public int deleteArtworksByArtworksId(Long artworksId)
    {
        return artworksMapper.deleteArtworksByArtworksId(artworksId);
    }

    @Override
    public List<ArtworkType> selectAllArtType(ArtworkType artworkType) {
        return artworksMapper.selectAllArtType(artworkType);
    }
}
